package com.cjw.pojo.entity.livesquare;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @create_time : 2021.12.3
 * @author : cjw
 * @descripe: 子评论实体
 */
@Data
@ToString(callSuper = true)
@Table(name = "comment_son")
@ApiModel("子评论实体")
public class CommentSon {
    @Id
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("父评论的id")
    private Long parentId;

    @ApiModelProperty("内容")
    private String context;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("回复的子评论id")
    private Long responseId;

    @ApiModelProperty("添加时间")
    private Date addTime;
}
